<template>
  <div>
    <button @click="pub">发布</button>
  </div>
</template>

<script>
import emitter from './utils/eventbus'
import { SOME_EVENT } from './utils/constants'
export default {
  methods: {
    pub() {
      emitter.emit(SOME_EVENT, { name: 'slim', age: 18 })
    }
  }
}
</script>

<style scoped></style>
